package com.demo.behavioral.iterator;

public class FastList implements MyCollection{
	
	//因为将数据转为集合较麻烦，这里忽略该过程，定义固定数据在这里
	public String datas[] = {"AA","BB","CC"};  

	public MyIterator iterator() { 
		return new FastIterator(this);
	}

	public Object get(int i) { 
		return datas[i];
	}

	public int size() { 
		return datas.length;
	}

}
